package Day07.demo1;

import java.util.*;

/**
 * @author chihb
 * @create-time 2024/7/4 11:39
 * @description
 */
public class Test {
    public static void main(String[] args) {
        List<Student> list=new ArrayList<>();
        list.add(new Student(1, "小亮", 99));
        list.add(new Student(2, "小勇", 85));
        list.add(new Student(3, "小响", 90));
        list.add(new Student(4, "小强", 89));
        list.sort((o1, o2) -> o1.getScore() - o2.getScore());
        list.remove(0);
        list.forEach(Student-> System.out.println(Student.getId()+","+Student.getName()+","+Student.getScore()));
    }
}
